[rpcinterface:supervisor]
; required for supervisorctl
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[unix_http_server]
file=/var/run/supervisor.sock

[supervisord]
logfile=/var/log/supervisor/supervisord.log
loglevel=debug
pidfile=/var/run/supervisord.pid
childlogdir=/var/log/supervisor

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock

[include]
files = /etc/supervisord.d/*.conf

[program:nailgun]
command=uwsgi -y /etc/nailgun/uwsgi_nailgun.yaml
process_name=%(program_name)s
numprocs=1
numprocs_start=0
autostart=true
autorestart=true
startsecs=10
startretries=1000000
exitcodes=0,2
stopsignal=INT
stopwaitsecs=5
redirect_stderr=true
stdout_logfile=/var/log/nailgun/uwsgi.log
stdout_capture_maxbytes=0
stdout_events_enabled=false
serverurl=AUTO

[program:assassind]
command=<%= @nailgun_env %>/bin/assassind
process_name=%(program_name)s
numprocs=1
numprocs_start=0
autostart=true
autorestart=true
startsecs=10
startretries=1000000
exitcodes=0
stopsignal=INT
stopwaitsecs=5
redirect_stderr=true
stdout_logfile=/var/log/nailgun/assassind.log
stdout_capture_maxbytes=0
stdout_events_enabled=false
serverurl=AUTO

[program:receiverd]
command=<%= @nailgun_env %>/bin/receiverd
process_name=%(program_name)s
numprocs=1
numprocs_start=0
autostart=true
autorestart=true
startsecs=10
startretries=1000000
exitcodes=0
stopsignal=INT
stopwaitsecs=5
redirect_stderr=true
stdout_logfile=/var/log/nailgun/receiverd.log
stdout_capture_maxbytes=0
stdout_events_enabled=false
serverurl=AUTO

[program:astute]
command=/usr/bin/astuted -c /etc/astute/astuted.conf -l /var/log/astute/astute.log -w 7
process_name=%(program_name)s
numprocs=1
numprocs_start=0
autostart=true
autorestart=true
startsecs=10
startretries=1000000
exitcodes=0,2
stopsignal=INT
stopwaitsecs=5
redirect_stderr=true
stdout_logfile=/var/log/astute/app.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=10
stdout_capture_maxbytes=0
stdout_events_enabled=false
stderr_logfile=/var/log/astute/err.log
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=10
stderr_capture_maxbytes=0
stderr_events_enabled=false
serverurl=AUTO
